package com.sh.data.engine.application.model.request.datadev;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @Auther: zigui.zdf @Date: 2020/5/7 15:20 @Description:
 */
@Data
@Schema
public class SortNodeRequest {

    @NotNull(message = "id不能为空")
    @Schema(description = "拖动的目录id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long id;

    @NotNull(message = "siblingsId不能为空")
    @Schema(description = "拖动到兄弟目录id", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long siblingsId;

    @NotNull(message = "dropPosition不能为空")
    @Schema(description = "拖动到兄弟目录的位置", requiredMode = Schema.RequiredMode.REQUIRED, allowableValues = {"-1", "1"})
    private Integer dropPosition;
}
